<?php /* Smarty version Smarty-3.1.6, created on 2017-05-02 20:13:55
         compiled from "D:/test.cn/Test/Admin/View\Auth\addauth.html" */ ?>
<?php /*%%SmartyHeaderCode:32359005769aaf0e8-63689047%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '06927dae34c11ff902ad34819b9a84b8a1bb01c8' => 
    array (
      0 => 'D:/test.cn/Test/Admin/View\\Auth\\addauth.html',
      1 => 1493204836,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '32359005769aaf0e8-63689047',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.6',
  'unifunc' => 'content_59005769b715d',
  'variables' => 
  array (
    'info' => 0,
    'ma' => 0,
    'level' => 0,
    'l' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_59005769b715d')) {function content_59005769b715d($_smarty_tpl) {?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>《C语言程序设计》在线考试系统 - 添加权限 </title>
<meta name="Copyright" content="Douco Design." />
<link href="<?php echo @Admin_URL;?>
css/public.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="<?php echo @Admin_URL;?>
js/jquery.min.js"></script>
<script type="text/javascript" src="<?php echo @Admin_URL;?>
js/global.js"></script>
</head>
<?php echo $_smarty_tpl->getSubTemplate ("../Index/top.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

 <div id="dcMain">
   <!-- 当前位置 -->
<div id="urHere">题库首页<b>></b><strong>添加权限</strong> </div>   <div id="manager" class="mainBox" style="height:auto!important;height:550px;min-height:550px;">
    <h3><a href="auth.html" class="actionBtn">返回列表</a>添加权限</h3>
            <form action="<?php echo @__SELF__;?>
" method="post">
     <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
      <tr>
       <td width="100" align="right">权限名称</td>
       <td>
        <input type="text" name="auth_name" size="40" class="inpMain" value="<?php echo $_smarty_tpl->tpl_vars['info']->value['auth_name'];?>
" <?php if ($_smarty_tpl->tpl_vars['ma']->value['name']!=false){?>disabled="disabled"<?php }?>/> 
        <span style="color:red; padding-left:64px;"></span>
       </td>
      </tr>
      <tr>
          <td align="right">上级权限</td>
          <td>
          <select name="auth_pid">
         	 <option value="0">顶级权限</option>
          <?php  $_smarty_tpl->tpl_vars['l'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['l']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['level']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['l']->key => $_smarty_tpl->tpl_vars['l']->value){
$_smarty_tpl->tpl_vars['l']->_loop = true;
?>
			<option value="<?php echo $_smarty_tpl->tpl_vars['l']->value['auth_path'];?>
" <?php if ($_smarty_tpl->tpl_vars['info']->value['auth_pid']==$_smarty_tpl->tpl_vars['l']->value['auth_path']){?> selected="selected"<?php }?>><?php echo $_smarty_tpl->tpl_vars['l']->value['auth_name'];?>
</option>
			<?php } ?>
           </select>
          </td>
      </tr>
      <tr>
       <td width="100" align="right">控制器</td>
       <td>
        <input type="text" name="auth_c" size="40" class="inpMain" value="<?php echo $_smarty_tpl->tpl_vars['info']->value['auth_c'];?>
" <?php if ($_smarty_tpl->tpl_vars['ma']->value['name']!=false){?>disabled="disabled"<?php }?>/> 
        <span style="color:red; padding-left:64px;"></span>
       </td>
      </tr>
      <tr>
       <td width="100" align="right">操作方法</td>
       <td>
        <input type="text" name="auth_a" size="40" class="inpMain" value="<?php echo $_smarty_tpl->tpl_vars['info']->value['auth_a'];?>
" <?php if ($_smarty_tpl->tpl_vars['ma']->value['name']!=false){?>disabled="disabled"<?php }?>/> 
        <span style="color:red; padding-left:64px;"></span>
       </td>
      </tr>
      <tr>
          <td align="right">是否首页</td>
          <td>
          <select name="is_index">
			<option value="1"<?php if ($_smarty_tpl->tpl_vars['info']->value['is_index']==1){?> selected="selected"<?php }?>>是</option>
			<option value="0"<?php if ($_smarty_tpl->tpl_vars['info']->value['is_index']==0){?> selected="selected"<?php }?>>否</option>
           </select>
          </td>
      </tr>
      <tr>
      <td></td>
       <td>
        <input type="submit" class="btn" value="提交" />
       </td>
      </tr>
     </table>
    </form>
                   </div>
 </div>
 <div class="clear"></div>
<div id="dcFooter">
 <div id="footer">
  <div class="line"></div>
  <ul>
   《C语言程序设计》在线考试系统，版权所有
  </ul>
 </div>
</div><!-- dcFooter 结束 -->
<div class="clear"></div> </div>
</body>
</html><?php }} ?>